import request from '@/utils/request'

//查询用户下级渠道
export function userChannel(data) {
  return request({
    url: '/sys/app/user/userChannel',
    method: 'post',
    data: data
  })
}
//新增渠道信息
export function addChannel(data) {
  return request({
    url: `/sys/app/user/addChannel`,
    method: 'post',
    data:data,
  })
}
// 用户变更渠道   /sys/user/statistics/channel/edit
export function channelEdit(data) {
  return request({
    url: `/sys/user/statistics/channel/edit`,
    method: 'post',
    data:data,
  })
}
// 用户渠道集合
export function channelList(data) {
  return request({
    url: `/sys/user/statistics/channel/list`,
    method: 'post',
    data:data,
  })
}
// 查询全部用户
export function foundationpage(data) {
  return request({
    url: `/sys/app/user/foundationpage`,
    method: 'post',
    data:data,
  })
}